package com.javasm.controller;


import com.javasm.common.http.AxiosResult;
import com.javasm.controller.base.BaseController;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;
import java.util.Map;

import static com.javasm.common.dictionary.InitContext.dic;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ljy
 * @since 2022-01-17
 */
@RestController
@RequestMapping("depot-dict")
@RequiredArgsConstructor
public class DepotDictController extends BaseController {

    @GetMapping("dic")
    public AxiosResult<Map<Integer,LinkedHashMap<Integer,String>>> dic() {
        return AxiosResult.success(dic);
    }
}
